<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_sfc.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">dev_sfc.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>SPI-Flash Control 硬件专用高速模块  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="dev__sfc_8h_source.html">dev_sfc.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
dev_sfc.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sfc_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sfc_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sfc_8c">
<area shape="rect" title="SPI&#45;Flash Control 硬件专用高速模块" alt="" coords="5,5,263,60"/>
<area shape="rect" href="dev__sfc_8h.html" title="SPI&#45;Flash Control 硬件专用高速模块" alt="" coords="96,108,172,133"/>
<area shape="rect" title=" " alt="" coords="91,181,177,207"/>
</map>
</div>
</div>
<p><a href="dev__sfc_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a3e07babe174017b09f2d82c4951172c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8">sfc_port_init</a> (void)</td></tr>
<tr class="memdesc:a3e07babe174017b09f2d82c4951172c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置 SFC 专用驱动端口  <a href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8">更多...</a><br /></td></tr>
<tr class="separator:a3e07babe174017b09f2d82c4951172c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa274c7312ab8789f8ad8f2feb6075dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd">sfc_config</a> (uint8_t width)</td></tr>
<tr class="memdesc:aaa274c7312ab8789f8ad8f2feb6075dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置 SFC 模块以建立与 SPI-Flash 的通讯  <a href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd">更多...</a><br /></td></tr>
<tr class="separator:aaa274c7312ab8789f8ad8f2feb6075dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad5d116153c77313a1212733b556a578"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578">sfc_init</a> (void)</td></tr>
<tr class="memdesc:aad5d116153c77313a1212733b556a578"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 SFC 将 外挂的SPI-Flash 映射至 MCU 总线地址上  <a href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578">更多...</a><br /></td></tr>
<tr class="separator:aad5d116153c77313a1212733b556a578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a754be673cc4d49aa9261d43a30c67e00"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sfc_8c.html#a754be673cc4d49aa9261d43a30c67e00">sfc_read_id</a> (void)</td></tr>
<tr class="memdesc:a754be673cc4d49aa9261d43a30c67e00"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过 SFC 读取 SPI-Flash ID  <a href="dev__sfc_8c.html#a754be673cc4d49aa9261d43a30c67e00">更多...</a><br /></td></tr>
<tr class="separator:a754be673cc4d49aa9261d43a30c67e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >SPI-Flash Control 硬件专用高速模块 </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>SFC 最高支持 16M SPI NOR FLASH, 因为 SFC 寻址寄存器只有 24 位, 故而限制了寻址范围</dd></dl>
<p>SFC - AHB 总线,最高频率为系统时钟 1 分频; SPI - APB 总线,最高频率为系统时钟 2 分频</p>
<p >SFC 可以将片外的 SPI-Flash 初始化挂载至总线上, 将其映射至 MCU 内部, 如此一来, 读取数据 可以直接访问 MCU 内部地址 (0x70000000 ~ 0x7FFFFFFF) 即可, 特别强调 : 写入数据仍需要调用 SFC_Write() 来完成.</p>
<p >但需要注意的是 : SFC 仅支持 4 字节 访问, 即 读 和 写 都必须遵循 32 bit 地址对齐 &amp; 数据量对齐.</p>
<p >当 SFC Write 时, 会占用 AHB 总线较大的带宽, 此时若 LCDC / SDRAMC 等 AHB 总线外设也在被使用, 会使得 LCDC 无法及时响应/发出信号, 导致驱屏异常闪烁/晃动. 为避免上述情况, 有如下做法供参考 :</p>
<p >1、尽量通过软件设计/调整预期需求, 避免 LCD 显示 与 SFC Write 同时进行(即 SFC 写入时, 屏幕不进行显示&lt;例:关背光&gt;).</p>
<p >2、转用 IO 模拟 SPI 来 Write SPI_Flash (注意: SFC 与 IO_SPI 之间多次反复的端口初始化切换);</p>
<p >3、减小 SFC Write 单次写入数据量, 增加 SFC Write 总写入次数(即多次调用, 反复短时占用-&gt;释放总线, 缓解 LCD 显示需求).</p>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sfc_8c_source.html">dev_sfc.c</a> 中定义.</p>
</div><h2 class="groupheader">函数说明</h2>
<a id="a3e07babe174017b09f2d82c4951172c8" name="a3e07babe174017b09f2d82c4951172c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e07babe174017b09f2d82c4951172c8">&#9670;&#160;</a></span>sfc_port_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sfc_port_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>配置 SFC 专用驱动端口 </p>

<p class="definition">在文件 <a class="el" href="dev__sfc_8c_source.html">dev_sfc.c</a> 第 <a class="el" href="dev__sfc_8c_source.html#l00045">45</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c_a3e07babe174017b09f2d82c4951172c8_icgraph.png" border="0" usemap="#adev__sfc_8c_a3e07babe174017b09f2d82c4951172c8_icgraph" alt=""/></div>
<map name="adev__sfc_8c_a3e07babe174017b09f2d82c4951172c8_icgraph" id="adev__sfc_8c_a3e07babe174017b09f2d82c4951172c8_icgraph">
<area shape="rect" title="配置 SFC 专用驱动端口" alt="" coords="1699,132,1791,157"/>
<area shape="rect" href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="1535,107,1615,132"/>
<area shape="rect" href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e" title="退出睡眠模式后的环境恢复" alt="" coords="1500,156,1651,181"/>
<area shape="rect" href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="1389,107,1452,132"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,56,1341,81"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,107,1179,132"/>
<area shape="rect" href="_mass_storage_8c.html#aa02df815c14caedbc2fd0a8910d2e055" title=" " alt="" coords="1249,157,1323,183"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,5,1183,31"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,81,1016,107"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,5,1000,31"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,107,836,132"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,107,621,132"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,107,444,132"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,107,305,132"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,107,179,132"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,107,56,132"/>
</map>
</div>

</div>
</div>
<a id="aaa274c7312ab8789f8ad8f2feb6075dd" name="aaa274c7312ab8789f8ad8f2feb6075dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa274c7312ab8789f8ad8f2feb6075dd">&#9670;&#160;</a></span>sfc_config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sfc_config </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>配置 SFC 模块以建立与 SPI-Flash 的通讯 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>: 几线通讯(1/2/4) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="dev__sfc_8c_source.html">dev_sfc.c</a> 第 <a class="el" href="dev__sfc_8c_source.html#l00061">61</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_cgraph.png" border="0" usemap="#adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_cgraph" alt=""/></div>
<map name="adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_cgraph" id="adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_cgraph">
<area shape="rect" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="5,5,85,31"/>
<area shape="rect" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8" title="配置 SFC 专用驱动端口" alt="" coords="133,5,225,31"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_icgraph.png" border="0" usemap="#adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_icgraph" alt=""/></div>
<map name="adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_icgraph" id="adev__sfc_8c_aaa274c7312ab8789f8ad8f2feb6075dd_icgraph">
<area shape="rect" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="1500,107,1580,132"/>
<area shape="rect" href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="1389,107,1452,132"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,56,1341,81"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,107,1179,132"/>
<area shape="rect" href="_mass_storage_8c.html#aa02df815c14caedbc2fd0a8910d2e055" title=" " alt="" coords="1249,157,1323,183"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,5,1183,31"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,81,1016,107"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,5,1000,31"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,107,836,132"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,107,621,132"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,107,444,132"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,107,305,132"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,107,179,132"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,107,56,132"/>
</map>
</div>

</div>
</div>
<a id="aad5d116153c77313a1212733b556a578" name="aad5d116153c77313a1212733b556a578"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad5d116153c77313a1212733b556a578">&#9670;&#160;</a></span>sfc_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sfc_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 SFC 将 外挂的SPI-Flash 映射至 MCU 总线地址上 </p>
<dl class="section note"><dt>注解</dt><dd>配置为内存映射模式 </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sfc_8c_source.html">dev_sfc.c</a> 第 <a class="el" href="dev__sfc_8c_source.html#l00102">102</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c_aad5d116153c77313a1212733b556a578_cgraph.png" border="0" usemap="#adev__sfc_8c_aad5d116153c77313a1212733b556a578_cgraph" alt=""/></div>
<map name="adev__sfc_8c_aad5d116153c77313a1212733b556a578_cgraph" id="adev__sfc_8c_aad5d116153c77313a1212733b556a578_cgraph">
<area shape="rect" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="5,5,68,31"/>
<area shape="rect" href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="116,5,196,31"/>
<area shape="rect" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8" title="配置 SFC 专用驱动端口" alt="" coords="244,5,336,31"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sfc_8c_aad5d116153c77313a1212733b556a578_icgraph.png" border="0" usemap="#adev__sfc_8c_aad5d116153c77313a1212733b556a578_icgraph" alt=""/></div>
<map name="adev__sfc_8c_aad5d116153c77313a1212733b556a578_icgraph" id="adev__sfc_8c_aad5d116153c77313a1212733b556a578_icgraph">
<area shape="rect" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="1389,107,1452,132"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,56,1341,81"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,107,1179,132"/>
<area shape="rect" href="_mass_storage_8c.html#aa02df815c14caedbc2fd0a8910d2e055" title=" " alt="" coords="1249,157,1323,183"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,5,1183,31"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,81,1016,107"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,5,1000,31"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,107,836,132"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,107,621,132"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,107,444,132"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,107,305,132"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,107,179,132"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,107,56,132"/>
</map>
</div>

</div>
</div>
<a id="a754be673cc4d49aa9261d43a30c67e00" name="a754be673cc4d49aa9261d43a30c67e00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a754be673cc4d49aa9261d43a30c67e00">&#9670;&#160;</a></span>sfc_read_id()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t sfc_read_id </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过 SFC 读取 SPI-Flash ID </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">ID</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>须先完成 SFC 的配置, 且 SFC 最大只能读取 uint32_t 范围内的 id </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sfc_8c_source.html">dev_sfc.c</a> 第 <a class="el" href="dev__sfc_8c_source.html#l00113">113</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
